/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * HelpDialog.java
 *
 * Created on May 7, 2011, 12:57:02 AM
 */
package uploadphotobucket.view;

import java.util.Locale;
import java.util.ResourceBundle;

/**
 *
 * @author banhbaochay
 */
public class HelpDialog extends javax.swing.JDialog {

    /** Creates new form HelpDialog
     * @param parent
     * @param modal
     * @param locale  
     */
    public HelpDialog(java.awt.Frame parent, boolean modal, Locale locale) {
        super(parent, modal);
        this.locale = locale;
        initComponents();
    }// end constructor
    
    public void changeLanguage() {
        ResourceBundle rs = ResourceBundle.getBundle("resourcebundle.HelpDialog", locale);
        jLabel9.setText(rs.getString("HelpDialog.jLabel9.text"));
        jLabel10.setText(rs.getString("HelpDialog.jLabel10.text"));
        jLabel11.setText(rs.getString("HelpDialog.jLabel11.text"));
        jLabel12.setText(rs.getString("HelpDialog.jLabel12.text"));
        jLabel13.setText(rs.getString("HelpDialog.jLabel13.text"));
        jLabel14.setText(rs.getString("HelpDialog.jLabel14.text"));
        jLabel15.setText(rs.getString("HelpDialog.jLabel15.text"));
        jLabel16.setText(rs.getString("HelpDialog.jLabel16.text"));
        jLabel17.setText(rs.getString("HelpDialog.jLabel17.text"));
        jLabel18.setText(rs.getString("HelpDialog.jLabel18.text"));
        jLabel19.setText(rs.getString("HelpDialog.jLabel19.text"));
        jLabel20.setText(rs.getString("HelpDialog.jLabel20.text"));
        jLabel21.setText(rs.getString("HelpDialog.jLabel21.text"));
        jLabel22.setText(rs.getString("HelpDialog.jLabel22.text"));
        jLabel23.setText(rs.getString("HelpDialog.jLabel23.text"));
        jLabel24.setText(rs.getString("HelpDialog.jLabel24.text"));
        jLabel25.setText(rs.getString("HelpDialog.jLabel25.text"));
        closeHelpDialogButton.setText(rs.getString("HelpDialog.closeHelpDialogButton.text"));
        setTitle(rs.getString("HelpDialog.title"));
    }// end changeLanguage method
    
    public void localeChanged(Locale locale) {
        this.locale = locale;
    }// end localeChanged method

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        helpPanel = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        closeHelpDialogButton = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        java.util.ResourceBundle bundle = java.util.ResourceBundle.getBundle("resourcebundle/HelpDialog"); // NOI18N
        setTitle(bundle.getString("HelpDialog.title")); // NOI18N

        jLabel9.setText(bundle.getString("HelpDialog.jLabel9.text")); // NOI18N

        jLabel10.setText(bundle.getString("HelpDialog.jLabel10.text")); // NOI18N

        jLabel11.setText(bundle.getString("HelpDialog.jLabel11.text")); // NOI18N

        jLabel12.setText(bundle.getString("HelpDialog.jLabel12.text")); // NOI18N

        jLabel13.setText(bundle.getString("HelpDialog.jLabel13.text")); // NOI18N

        jLabel14.setText(bundle.getString("HelpDialog.jLabel14.text")); // NOI18N

        jLabel15.setText(bundle.getString("HelpDialog.jLabel15.text")); // NOI18N

        jLabel16.setText(bundle.getString("HelpDialog.jLabel16.text")); // NOI18N

        jLabel17.setText(bundle.getString("HelpDialog.jLabel17.text")); // NOI18N

        jLabel18.setText(bundle.getString("HelpDialog.jLabel18.text")); // NOI18N

        jLabel19.setText(bundle.getString("HelpDialog.jLabel19.text")); // NOI18N

        jLabel20.setText(bundle.getString("HelpDialog.jLabel20.text")); // NOI18N

        jLabel21.setText(bundle.getString("HelpDialog.jLabel21.text")); // NOI18N

        jLabel22.setText(bundle.getString("HelpDialog.jLabel22.text")); // NOI18N

        jLabel23.setText(bundle.getString("HelpDialog.jLabel23.text")); // NOI18N

        jLabel24.setText(bundle.getString("HelpDialog.jLabel24.text")); // NOI18N

        jLabel25.setText(bundle.getString("HelpDialog.jLabel25.text")); // NOI18N

        closeHelpDialogButton.setText(bundle.getString("HelpDialog.closeHelpDialogButton.text")); // NOI18N
        closeHelpDialogButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                closeHelpDialogButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout helpPanelLayout = new javax.swing.GroupLayout(helpPanel);
        helpPanel.setLayout(helpPanelLayout);
        helpPanelLayout.setHorizontalGroup(
            helpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(helpPanelLayout.createSequentialGroup()
                .addGap(92, 92, 92)
                .addGroup(helpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, helpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, helpPanelLayout.createSequentialGroup()
                            .addGap(77, 77, 77)
                            .addComponent(jLabel12, javax.swing.GroupLayout.DEFAULT_SIZE, 495, Short.MAX_VALUE))
                        .addGroup(helpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jLabel25, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, helpPanelLayout.createSequentialGroup()
                                .addGap(79, 79, 79)
                                .addComponent(jLabel24, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, helpPanelLayout.createSequentialGroup()
                                .addGap(77, 77, 77)
                                .addComponent(jLabel18, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, helpPanelLayout.createSequentialGroup()
                                .addGap(53, 53, 53)
                                .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 551, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, helpPanelLayout.createSequentialGroup()
                                .addGap(56, 56, 56)
                                .addGroup(helpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 499, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, helpPanelLayout.createSequentialGroup()
                                .addGap(77, 77, 77)
                                .addGroup(helpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, 478, Short.MAX_VALUE)
                                    .addComponent(jLabel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, helpPanelLayout.createSequentialGroup()
                                .addGap(29, 29, 29)
                                .addGroup(helpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, 526, Short.MAX_VALUE)
                                    .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel19, javax.swing.GroupLayout.DEFAULT_SIZE, 526, Short.MAX_VALUE)))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, helpPanelLayout.createSequentialGroup()
                                .addGap(79, 79, 79)
                                .addGroup(helpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel22, javax.swing.GroupLayout.DEFAULT_SIZE, 476, Short.MAX_VALUE)
                                    .addComponent(jLabel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, helpPanelLayout.createSequentialGroup()
                                .addGap(57, 57, 57)
                                .addGroup(helpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel23, javax.swing.GroupLayout.DEFAULT_SIZE, 498, Short.MAX_VALUE)
                                    .addComponent(jLabel20, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
                    .addGroup(helpPanelLayout.createSequentialGroup()
                        .addGap(241, 241, 241)
                        .addComponent(closeHelpDialogButton)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 269, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(213, 213, 213))
        );
        helpPanelLayout.setVerticalGroup(
            helpPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, helpPanelLayout.createSequentialGroup()
                .addContainerGap(27, Short.MAX_VALUE)
                .addComponent(jLabel9)
                .addGap(18, 18, 18)
                .addComponent(jLabel10)
                .addGap(18, 18, 18)
                .addComponent(jLabel11)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel12)
                .addGap(18, 18, 18)
                .addComponent(jLabel13)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel14)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel15)
                .addGap(18, 18, 18)
                .addComponent(jLabel16)
                .addGap(18, 18, 18)
                .addComponent(jLabel17)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel18)
                .addGap(18, 18, 18)
                .addComponent(jLabel19)
                .addGap(18, 18, 18)
                .addComponent(jLabel20)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel21)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel22)
                .addGap(18, 18, 18)
                .addComponent(jLabel23)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel24)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel25)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(closeHelpDialogButton)
                .addGap(14, 14, 14))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 889, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(helpPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 587, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(helpPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addContainerGap()))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void closeHelpDialogButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_closeHelpDialogButtonActionPerformed
        // TODO add your handling code here:
        dispose();
    }//GEN-LAST:event_closeHelpDialogButtonActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton closeHelpDialogButton;
    private javax.swing.JPanel helpPanel;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel9;
    // End of variables declaration//GEN-END:variables
    private Locale locale;
}
